<?php $start = microtime(TRUE); ?>
<?php 
include "./adminfunctions.php";
session_start();
if(!session_is_registered("username")){
header("location:index.php");
}

?>
<html>
<head>
<title>Admin Panel :: Edit Front Page</title>
<?php css($css); ?>
</head>
<body>
<?php qheader(); ?>
<center>
Admin: <?php adminlinks(); ?>
<br><br><br>
<br>
<font face="arial" size="3"><br>
</center>
<?php
startsql();
$result = mysql_query("SELECT * FROM queue") or die(mysql_error());
$queuenum=0;
	while($row = mysql_fetch_array( $result )) {
    $queuenum++;
    echo '
   <form action="processmod.php" method="post">
    <div id="body"><div id="death">'.$row['id'].'<br><br>
   Keep the Quote: <input type="radio" name="modbutton" value="approve_'.$row['id'].'">
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   Delete Quote: <input type="radio" name="modbutton" value="disapprove_'.$row['id'].'">
   </div><br>'.nl2br(htmlspecialchars($row['quote']))."<br><br>Comments: ".$row['comments'].' <br><br>
   <input type="submit" value="Moderate this quote">
   </form>
   </div>';

}
?>



<center>
</body>



<br><br><font size="2">
<?php footer(); ?>
<?php
$finish = microtime(TRUE);
$total_time = round(($finish - $start), 4);
echo '<br>Page generated in '.$total_time.' seconds.'."\n";   
?>
</font>
</center>
</html>

